﻿@model SocialGoal.Model.Models.Goal
@{
    ViewBag.Title = "Delete Goal";
}
@*<div class="alert fade in">
<button type ="button" class ="close" data-dismiss ="alert" >×</button>
            <strong class="alert-heading">
                Warning!</strong>
            Best check your self, before deleting
        </div>*@
<div class="alert alert-block alert-error fade in">
    <strong>
        Delete</strong>
  <br />
        Are you sure you want to delete this?
<br />
<br />


    <strong >@Html.DisplayFor(model => model.GoalName)</strong>
    <table>
        <tr >
            <td class="display-label">
                @Html.DisplayNameFor(model => model.GoalName)
            </td>
            <td class="display-field">
            &nbsp;&nbsp;&nbsp;
                @Html.DisplayFor(model => model.GoalName)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.Desc)
            </td>
            <td class="display-field">
             &nbsp;&nbsp;&nbsp;
                @Html.DisplayFor(model => model.Desc)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.StartDate)
            </td>
            <td class="display-field">
             &nbsp;&nbsp;&nbsp;
                @Html.DisplayFor(model => model.StartDate)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.EndDate)
            </td>
            <td class="display-field">
             &nbsp;&nbsp;&nbsp;
                @Html.DisplayFor(model => model.EndDate)
            </td>
            <td>@Html.HiddenFor(mbox => mbox.GoalId)
            </td>
        </tr>
    </table>
    <br />
    <div id="divDelete@(Model.GoalId)">
    </div>
    @using (Html.BeginForm())
    {
        <p>
            <button class="btn btn-danger" type="submit" value="Submit">
                Delete</button>
                 <button class="btn" type="reset" value="Cancel" onclick="window.location.href='@Url.Action("Index", "Goal", new { id = @Model.GoalId })'">
        Cancel</button>
        </p>
      
        
    }
   
</div>
